layui.config({
    base : "js/"
}).use(['form','layer','jquery','laypage'],function(){
    var form = layui.form(),
        layer = parent.layer === undefined ? layui.layer : parent.layer,
        laypage = layui.laypage,
        $ = layui.jquery;

    var newsData = '';
    $.get("http://localhost:8089/com.3group.personality/blog/selectBlogById", function (data) {
        newsData = data;
        if(window.sessionStorage.getItem("addNews")){
            var addNews = window.sessionStorage.getItem("addNews");
            newsData = JSON.parse(addNews).concat(newsData);
        }
        //执行加载数据的方法
        newsList( JSON.parse(data));
    })
    function newsList(data){
        var dataHtml = '';


        dataHtml = '<p>' +data.content+'</p>';
        return dataHtml;
    }
})
